<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>WNote</title>
    <link rel="icon" href="{{ url_for("static", filename="images/logo/logo.png") }}">
</head>
<body>
<div id="render-target"></div>
<div id="monitor" style="position: fixed;right: 0;bottom: 0;"></div>
<script src="//cdn.bootcss.com/stats.js/r16/Stats.min.js"></script>
<script>
    var stats = new Stats();
    stats.showPanel(2); // 0: fps, 1: ms, 2: mb, 3+: custom
    document.querySelector("#monitor").appendChild(stats.domElement);
    stats.domElement.style.width = "80px";

    function animate() {

        stats.begin();

        // monitored code goes here

        stats.end();

        requestAnimationFrame(animate);

    }

    requestAnimationFrame(animate);
</script>
</body>
</html>